package com.baizhi.bean;/**
 * @Author:luoht
 * @Description：
 * @Date：Create in 21:00 2018/12/24
 */

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @program: SpringCloud
 * @description:
 * @author: luoht
 * @create: 2018-12-24 21:00
 **/
@Configuration
public class Beans {

    @Bean
    @LoadBalanced
    public RestTemplate getRestTemplate(){
        return new RestTemplate();
    }

}
